import prompt from '@system.prompt'
export default {
    data: {
        types:['auto','pulldown'],
        typeIndex:0,
        friction:42,
        refreshing:false,
        lasttime:false,
    },
    changeType(e){
        this.typeIndex=e;
    },
    setvalue(e) {
       this.friction=e.value
    },
    changeLasttime(e){
        this.lasttime=e.checked;
    },
      changeRefreshing(e){
        this.refreshing=e.checked;
    },
    pulldown(e){
        prompt.showToast({
            message: e.state,
            duration: 3000,
        });
    }
}
